package com.yyh.process_control;

import java.util.Arrays;
import java.util.Scanner;

public class SwitchCase {
    public static void main(String[] args) {
        int[] arr1 = {1, 2, 3, 4};
        int[][] arr2 = new int[4][3];
        for (int i = 0; i < arr2.length; i++){
            arr2[i][0] = 1;
            arr2[i][1] = 2;
            arr2[i][2] = 3;
        }
        System.out.println(arr2.length);
        System.out.println(Arrays.toString(arr2));
        System.out.println(Arrays.deepToString(arr2));



        /*while (true) {
            Scanner scanner = new Scanner(System.in);
            System.out.println("请输入你的名次（中文：冠、亚、季）：");
            String mingci = scanner.next();
            if (mingci.equals("exit")) {
                break;
            }
            m1(mingci);
        }*/
    }


    public static void m1(String mingci) {
        switch (mingci) {
            case "冠":
                System.out.println("你是冠军！");
                break;
            case "亚":
                System.out.println("你是亚军");
                break;
            case "季":
                System.out.println("你是季军");
                break;
            default:
                System.out.println("对不起，你的输入有误");
                break;
        }
    }
}
